package icu.zlz.emqx.mapper;

import java.util.List;

import icu.zlz.emqx.domain.IotDevicesTopic;

/**
 * xxMapper接口
 *
 * @author zangs
 * @since 2025-01-02
 */
public interface IotDevicesTopicMapper {
    /**
     * 查询xx
     *
     * @param rowId xx主键
     * @return xx
     */
    public IotDevicesTopic selectIotDevicesTopicByRowId(Long rowId);

    /**
     * 查询xx列表
     *
     * @param iotDevicesTopic xx
     * @return xx集合
     */
    public List<IotDevicesTopic> selectIotDevicesTopicList(IotDevicesTopic iotDevicesTopic);

    /**
     * 新增xx
     *
     * @param iotDevicesTopic xx
     * @return 结果
     */
    public int insertIotDevicesTopic(IotDevicesTopic iotDevicesTopic);

    /**
     * 修改xx
     *
     * @param iotDevicesTopic xx
     * @return 结果
     */
    public int updateIotDevicesTopic(IotDevicesTopic iotDevicesTopic);

    /**
     * 删除xx
     *
     * @param rowId xx主键
     * @return 结果
     */
    public int deleteIotDevicesTopicByRowId(Long rowId);

    /**
     * 批量删除xx
     *
     * @param rowIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteIotDevicesTopicByRowIds(Long[] rowIds);

    public int deleteIotDevicesTopicByDevicesIds(Long[] ids);

    public int batchContacts(List<IotDevicesTopic> iotMqttAlarmContactsList);

    public List<IotDevicesTopic> selectIotDevicesTopicByDeviceId(Long deviceId);
}
